package org.ichow.scenegame.controller
{
	import flash.external.ExternalInterface;
	import org.ichow.debug.Log;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * ...
	 * @author M.ichow
	 */
	public class ExternalCommand extends SimpleCommand
	{
		
		override public function execute( notification : INotification ) : void
		{
			super.execute( notification );
			try
			{
				ExternalInterface.call( notification.getType() , notification.getBody() );
			}
			catch ( e : Error )
			{
				Log.trace("external: " + e.message );
			}
		}
	
	}

}